import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common'
import { PrismaModule } from './prisma/prisma.module'
import { AccountModule } from './account/account.module'
import { CategoryModule } from './category/category.module'
import { ArticleModule } from './article/article.module'
import { CommentModule } from './comment/comment.module'
import { RewardModule } from './reward/reward.module'
import { UploadModule } from './upload/upload.module'
import { LoginModule } from './login/login.module'
import { ConfigModule } from '@nestjs/config'
import { WebCategoryModule } from './web-category/web-category.module';
import { WebArticleModule } from './web-article/web-article.module';
import { WebCommentModule } from './web-comment/web-comment.module';
import { WebRewardModule } from './web-reward/web-reward.module';
import { LinkModule } from './link/link.module';
import { WebLinkModule } from './web-link/web-link.module';
import { SettingModule } from './setting/setting.module';
import { VisitModule } from './visit/visit.module';

@Module({
    imports: [
        ConfigModule.forRoot(),
        PrismaModule,
        AccountModule,
        CategoryModule,
        ArticleModule,
        CommentModule,
        RewardModule,
        UploadModule,
        LoginModule,
        WebCategoryModule,
        WebArticleModule,
        WebCommentModule,
        WebRewardModule,
        LinkModule,
        WebLinkModule,
        SettingModule,
        VisitModule
    ],
    controllers: [],
    providers: [],
})
export class AppModule { 
    
}
